package com.fh.service.runbatch;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.fh.model.loan.CallLoanInfo;
import com.fh.model.loan.MidCallLoanInfo;
import com.fh.model.loan.RunBatchFlag;

public interface IRunBatchService {
	/**
	 * 通过还款订单号查询是否存在该案件(并且状态不为已结案)
	 * 
	 * @param repaymentId
	 * @return 
	 */
	CallLoanInfo selectByRepaymentId(String repaymentId);
	
	/**
	 * 插入跑批数据
	 * 
	 * @param info
	 */
	void insert(CallLoanInfo info);
	/**
	 * 修改数据
	 * 
	 * @param info
	 */
	void update(CallLoanInfo info);
	
	void executeRunBatch (int count)  throws Exception;
	/**
	 * 获取逾期跑批中间表数据
	 * 
	 * @param id
	 * @author yc
	 */
	List<MidCallLoanInfo> selectMidCallLoanInfo(int beginIndex, int pageSize);
	
	void insertFlag(String flag);
	
}
